package com.nbsaas.boot.project.rest.convert;

import com.nbsaas.boot.project.data.entity.Project;
import com.nbsaas.boot.project.api.domain.simple.ProjectSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 列表对象转换器
*/

public class ProjectSimpleConvert implements Converter<ProjectSimple, Project> {




@Override
public ProjectSimple convert(Project source) {
    ProjectSimple result = new ProjectSimple();

                result.setNote(source.getNote());
                result.setName(source.getName());
                result.setId(source.getId());
                result.setAddDate(source.getAddDate());
                result.setLastDate(source.getLastDate());


    return result;
}

}